<?php

require_once 'coreapi/DBAPI.php';


/**
 * Para acceder a la DB
 *
 */
class DBPlugin {

	
	/**
	 * Retorna la tabla
	 */	
	public static function getTableInstance($tableName) {
		require_once 'tables/'.$tableName.'.php';
		$db = DBAPI::getDBHandler();
		$table = new $tableName(array('db' => $db));
		return $table;		
	}
	

}